import Layout from '@/layout'
const SystemManagementRouter = {
  path: '/SystemManagement',
  component: Layout,
  redirect: '/SystemManagement',
  name: 'SystemManagement',
  alwaysShow: true,
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-tools'
  },
  children: [
    {
      path: 'RoleManagement',
      component: () =>
        import('@/views/SystemManagement/RoleManagement/index.vue'),
      name: 'RoleManagement',
      meta: { title: '角色管理' }
    },
    {
      path: 'MenuManagement',
      component: () =>
        import('@/views/SystemManagement/MenuManagement/index.vue'),
      name: 'MenuManagement',
      meta: { title: '菜单管理' }
    },
    {
      path: 'DictionaryManagement',
      component: () =>
        import('@/views/SystemManagement/DictionaryManagement/index.vue'),
      name: 'DictionaryManagement',
      meta: { title: '字典管理' }
      // children: [
      //   {
      //     path: "DictionaryList",
      //     component: () =>
      //       import(
      //         "@/views/SystemManagement/DictionaryManagement/DictionaryList.vue"
      //       ),
      //     name: "DictionaryData",
      //     hidden: true, // 隐藏子路由，
      //   },
      //   {
      //     path: "DictionaryData",
      //     component: () =>
      //       import(
      //         "@/views/SystemManagement/DictionaryManagement/DictionaryDataList.vue"
      //       ),
      //     name: "DictionaryData",
      //     hidden: true, // 隐藏子路由，
      //     meta: {
      //       title: "字典数据",
      //     },
      //   },
      // ],
    },

    {
      path: 'ParamterManagement',
      component: () =>
        import('@/views/SystemManagement/ParamterManagement/index.vue'),
      name: 'ParamterManagement',
      meta: { title: '参数设置' }
    },
    {
      path: 'LogManagement',
      name: 'LogManagement',
      component: () =>
        import('@/views/SystemManagement/LogManagement/index.vue'),
      redirect: '/SystemManagement/LogManagement/index.vue',
      meta: { title: '日志管理' },
      children: [
        {
          path: 'ActionLogManagement',
          component: () =>
            import(
              '@/views/SystemManagement/LogManagement/ActionLog/index.vue'
            ),
          name: 'ActionLogManagement',
          meta: { title: '操作日志' }
        },
        {
          path: 'LoginLogManagement',
          component: () =>
            import('@/views/SystemManagement/LogManagement/LoginLog/index.vue'),
          name: 'LoginLogManagement',
          meta: { title: '登录日志' }
        }
      ]
    }
  ]
}

export default SystemManagementRouter
